package com.wt.admin.domain.entity.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.wt.admin.domain.entity.PublicEntity;
import lombok.Data;

import java.util.List;

/**
 * 无侵入权限设计
 */
@Data
@TableName(value = "sys_data_permissions")
public class SysDataPermissionsEntity extends PublicEntity {


    @TableId(value = "table_name")
    private String tableName;

    @TableField(value = "conditions")
    private String conditions;

    @TableField(value = "role_id",typeHandler =  JacksonTypeHandler.class)
    private List<Integer> roleId;

}
